import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'

@Entity({ name: 'c_work_tag_relation' })
export class WorkTagRelationEntity {
  @PrimaryGeneratedColumn()
  id: number

  @Column({ name: 'work_id' })
  workId: number

  @Column({ name: 'tag_id' })
  tagId: number

  @Column({ name: 'created_at', type: 'datetime', default: () => 'CURRENT_TIMESTAMP' })
  createdAt: Date
} 